<template>
  <div class='xtx-tab-pane' v-show="rootTabs.currentName===name">
    <slot></slot>
  </div>
</template>

<script>
export default {
  inject: ['rootTabs'],
  props: {
    label: {
      type: String,
      default: ''
    },
    name: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped lang='less'>
.xtx-tab-pane{
  position: relative;
}
</style>
